using System.Collections.Generic;

namespace UnityEngine.Recorder.Input
{
	public abstract class ImageInputSettings : RecorderInputSetting
	{
		public EImageDimension m_OutputSize = EImageDimension.x720p_HD;

		public EImageAspect m_AspectRatio;

		public bool m_ForceEvenSize;

		public EImageDimension maxSupportedSize
		{
			get;
			set;
		}

		public override bool ValidityCheck(List<string> errors)
		{
			bool result = true;
			if (m_OutputSize > maxSupportedSize)
			{
				result = false;
				errors.Add("Output size exceeds maximum supported size: " + (int)maxSupportedSize);
			}
			return result;
		}
	}
}
